<a href="http://github.com/angular/angular.js/edit/master/docs/content/error/ngPattern/noregexp.ngdoc" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">Expected Regular Expression</code>
<div><span class="hint">error in component <code ng:non-bindable="">ngPattern</code>
</span>
</div>
</h1>
<div><pre class="minerr-errmsg" error-display="Expected {0} to be a RegExp but was {1}. Element: {2}">Expected {0} to be a RegExp but was {1}. Element: {2}</pre>
<h2 id="description">Description</h2>
<div class="description"><div class="ngpattern-page ngpattern-noregexp-page"><p>This error occurs when &#39;ngPattern&#39; is passed an expression that isn&#39;t a regular expression or doesn&#39;t have the expected format.</p>
<p>For more information on valid expression syntax, see &#39;ngPattern&#39; in <a href="api/ng.directive:select"><code>input</code></a> directive docs.</p>
</div></div>
</div>
